<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h1>测试鼠标右键</h1>
		<hr>
		<p>苏州</p>
		<script>
			document.oncontextmenu = function(){
				var div = document.getElementById("mydiv");
				div.style.display="block";
				alert("右键不能点击")
					return false;
				}
		</script>
		<div ondblclick="alert("8888")" id="mydiv" style="width: 300px; height: 400px; background-color: #008000; display: none;">测试</div>
	</body>
</html>
